package com.bbdjt.weixin.model;


import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import org.apache.ibatis.type.Alias;
import java.io.Serializable;


import java.util.Date;

@Alias("weixin")
@Table(name = "weixin")
public class Weixin implements Serializable  {
//使用@Transient注解可以忽略字段,添加该注解的字段不会作为表字段使用
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
	//ID							
	@Column(name = "id")
	private Integer id;
	//用户ID							
	@Column(name = "patient_id")
	private Integer patientId;
	//用户OpenID获取用户基本信息							
	@Column(name = "open_id")
	private String openId;
	//微信用户昵称							
	@Column(name = "nickname")
	private String nickname;
	//来自微信							
	@Column(name = "language")
	private String language;
	//微信用户性别							
	@Column(name = "sex")
	private Integer sex;
	//微信用户所在城市							
	@Column(name = "city")
	private String city;
	//微信用户所在省份							
	@Column(name = "province")
	private String province;
	//微信用户所在国家							
	@Column(name = "country")
	private String country;
	//用户的微信头像|如果用户更换头像则此字段保存的内容将失效							
	@Column(name = "headimaurl")
	private String headimaurl;
	//用户关注时间，为时间戳|多次关注则取最后关注时间							
	@Column(name = "subscribe_time")
	private String subscribeTime;
	//来自微信							
	@Column(name = "unionid")
	private String unionid;
	//运营商对关注粉丝的备注							
	@Column(name = "remark")
	private String remark;
	//用户所在分组id							
	@Column(name = "groupid")
	private Integer groupid;
	//创建时间							
	@Column(name = "create_time")
	private Date createTime;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getPatientId() {
		return patientId;
	}

	public void setPatientId(Integer patientId) {
		this.patientId = patientId;
	}
	public String getOpenId() {
		return openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}
	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}
	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}
	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}
	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}
	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}
	public String getHeadimaurl() {
		return headimaurl;
	}

	public void setHeadimaurl(String headimaurl) {
		this.headimaurl = headimaurl;
	}
	public String getSubscribeTime() {
		return subscribeTime;
	}

	public void setSubscribeTime(String subscribeTime) {
		this.subscribeTime = subscribeTime;
	}
	public String getUnionid() {
		return unionid;
	}

	public void setUnionid(String unionid) {
		this.unionid = unionid;
	}
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Integer getGroupid() {
		return groupid;
	}

	public void setGroupid(Integer groupid) {
		this.groupid = groupid;
	}
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}